home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Techniques / Examples by Thomas Tempelmann / TT's CatSearch-Plugin / Source Code (CW Pro 3) / Plugin SDK Includes / REALplugin.h < prev   
C/C++ Source or Header  |  1998-06-24  |  2KB  |  118 lines

  1. #pragma once
  2.  
  3. struct REALstringStruct;
  4. typedef REALstringStruct *REALstring;
  5.  
  6. #define REALexportPPC 1
  7.  
  8. struct REALexport
  9. {
  10.     const char *entryName;
  11.     void *proc;
  12.     int flags;
  13. };
  14.  
  15. struct REALmethodDefinition
  16. {
  17.     int exportIndex;
  18.     const char *declaration;
  19. };
  20.  
  21. #define REALpropInvalidate 1
  22.  
  23. struct REALproperty
  24. {
  25.     const char *group;
  26.     const char *name;
  27.     const char *type;
  28.     int flags;
  29.     int propertyOffset;
  30. };
  31.  
  32. struct REALevent
  33. {
  34.     const char *declaration;
  35.     int forSystemUse;
  36. };
  37.  
  38. struct REALcontrolBehaviour
  39. {
  40.     REALexport *initFunction;
  41.     REALexport *disposeFunction;
  42.     REALexport *redrawFunction;
  43.     REALexport *clickFunction;
  44.     REALexport *mouseDragFunction;
  45.     REALexport *mouseUpFunction;
  46.     REALexport *gainedFocusFunction;
  47.     REALexport *lostFocusFunction;
  48.     REALexport *keyDownFunction;
  49.     REALexport *unusedFunction0;
  50.     REALexport *unusedFunction1;
  51.     REALexport *unusedFunction2;
  52.     REALexport *unusedFunction3;
  53.     REALexport *unusedFunction4;
  54.     REALexport *unusedFunction5;
  55.     REALexport *unusedFunction6;
  56.     REALexport *unusedFunction7;
  57.     REALexport *unusedFunction8;
  58.     REALexport *unusedFunction9;
  59.     REALexport *unusedFunction10;
  60.     REALexport *unusedFunction11;
  61.     REALexport *unusedFunction12;
  62. };
  63.  
  64. #define kCurrentREALControlVersion 1
  65.  
  66. #define REALcontrolAcceptFocus 1
  67. #define REALcontrolFocusRing 2
  68. #define REALinvisibleControl 4
  69.  
  70. struct REALcontrol
  71. {
  72.     int version;
  73.     const char *name;
  74.     int dataSize;
  75.     int flags;
  76.     int toolbarPICT, toolbarDownPICT;
  77.     REALproperty *properties;
  78.     int propertyCount;
  79.     REALmethodDefinition *methods;
  80.     int methodCount;
  81.     REALevent *events;
  82.     int eventCount;
  83.     REALcontrolBehaviour *behaviour;
  84.     int forSystemUse;
  85. };
  86.  
  87. #define FieldOffset(type, field) (long)(&((type *) 0)->field)
  88.  
  89. struct REALcontrolInstanceStruct;
  90. typedef REALcontrolInstanceStruct *REALcontrolInstance;
  91.  
  92. struct REALfolderItemStruct;
  93. typedef REALfolderItemStruct *REALfolderItem;
  94.  
  95. struct REALgraphicsStruct;
  96. typedef REALgraphicsStruct *REALgraphics;
  97.  
  98. struct REALpictureStruct;
  99. typedef REALpictureStruct *REALpicture;
  100.  
  101. struct REALsoundStruct;
  102. typedef REALsoundStruct *REALsound;
  103.  
  104. struct REALappleEventStruct;
  105. typedef REALappleEventStruct *REALappleEvent;
  106.  
  107. struct REALwindowStruct;
  108. typedef REALwindowStruct *REALwindow;
  109.  
  110. struct REALpopupMenuStruct;
  111. typedef REALpopupMenuStruct *REALpopupMenu;
  112.  
  113. extern "C" {
  114. void PluginEntry(void);
  115. extern short pluginExportCode;
  116. extern REALexport pluginExports[];
  117. }
  118.